package com.member.shop.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.member.common.annotation.Excel;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @program: hy-admin
 * @description:
 * @author: thomas
 * @create: 2025-01-08 17:25
 **/
@Data
public class MessageStatDto {

    /**
     * 消息类型（1 系统消息 2 订单消息 3 客服消息 4 促销消息）
     */
    @Excel(name = "消息类型", readConverterExp = "1,系统消息,2,订单消息,3,客服消息,4,促销消息")
    private Integer messageType;
    /**
     * 未读数量
     */
    private long unReadCount;
    /**
     * 已读数量
     */
    private long readCount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最新消息时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastMessageTime;
}
